let DataHelper = require('./DataHelper');

export default (req, res) => {
  DataHelper.Instance.Begin("SET")
  DataHelper.Instance.SetData("./saved_data/2020-03-03/Facebook.json","1")
  DataHelper.Instance.SetData("./saved_data/2020-03-04/Facebook.json","2")
  DataHelper.Instance.Flush((err,tResp)=>{
    console.log(err)
    console.log(tResp)
    res.send({OK:true,Err:err,Resp:tResp})
  })

  // DataHelper.Instance.GetData(["./saved_data/2020-03-03/Facebook.json"],(sErr,tResp)=>{
  //   res.send({OK:true,Err:sErr,Resp:tResp})
  // })

  // DataHelper.Instance.GetDirs((err,tResp)=>{
  //   console.log(err)
  //   console.log(tResp)
  // })
}